import java.util.Scanner;

public class U_5_1 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        while (num!=0){
            int temp = num;
            num -= num>=100?100:num>=50?50:num>=20?20:num>=10?10:num>=5?5:1;
            System.out.println(temp-=num);
        }
    }
}
